package com.hmall.user.pojo;

public class IDThreadLocal {
    private static final ThreadLocal<Long> USER_ID = new ThreadLocal();

    public static void setId(Long id) {
        USER_ID.set(id);
    }

    public static Long getId() {
        return USER_ID.get();
    }

    public static void removeId(){
        USER_ID.remove();
    }
}
